package com.jiyun.service;

import com.jiyun.model.TestPaper;
import com.jiyun.model.TestPaperDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@FeignClient("day12-zhuqinghui-test-paper")
public interface TestPaperService {

    @RequestMapping("test_paper/findAll")
    public List<TestPaper> findAll(TestPaperDto testPaperDto);

    @RequestMapping("test_paper/findAllHottest")
    public List<TestPaper> findAllHottest(TestPaperDto testPaperDto);


    @RequestMapping("test_paper/findByName")
    public TestPaper findByName(@RequestParam(value = "name") String name);
}
